﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using BLL;
public partial class admin_Login : System.Web.UI.Page
{
    BLL.User_Volunteer bll_User_Volunteer = new User_Volunteer();
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnLogin_Click(object sender, EventArgs e)
    {
        //执行登陆，如果登陆成功，直接服务器跳转，否则弹出失败原因。
        string result = bll_User_Volunteer.Login(txtUsername.Value,txtPass.Value,txtCheckCode.Value);
        this.ClientScript.RegisterClientScriptBlock(GetType(), "", "alert('" + result + "')", true);
    }
}
